package com.audi.box.service;

import java.util.ArrayList;

import com.audi.box.adapter.SQLiteAsusHelperSmartTrigger;
import com.audi.dto.SmartTriggerItem;

public class SmartTriggerServiceImp implements SmartTriggerService {
    
    private SQLiteAsusHelperSmartTrigger mSQLHelper;
    
    public SmartTriggerServiceImp(SQLiteAsusHelperSmartTrigger mSQLHelper)
            throws Exception {
        this.mSQLHelper = mSQLHelper;
    }
    
    public void setSQLiteHelper(SQLiteAsusHelperSmartTrigger mSQLHelper) {
        this.mSQLHelper = mSQLHelper;
    }
    
    private void init() throws Exception {
        
    }
    
    @Override
    public ArrayList<SmartTriggerItem> getListSmartTrigger() {
        return mSQLHelper.getListSmartTrigger();
    }
    
    @Override
    public SmartTriggerItem getSmartTrigger(int whenId, int triggerId) {
        return mSQLHelper.getSmartTriger(whenId, triggerId);
    }
}
